﻿using System;

namespace Kaskelot.Web.UserControls.FormControls
{
	public partial class Postnummer : FormControl
	{
		protected void Page_Load(object sender, EventArgs e)
		{
			iText.Name = iText.ClientID;
			iText.Attributes.Add("data-id", Falt.Id.ToString());

			if (Falt.Required)
				iText.Attributes["class"] += " required";

			if (!string.IsNullOrEmpty(Falt.Default))
				iText.Value = Falt.Default;
		}
	}
}